<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="https://cdn.jsdelivr.net/npm/vue"></script>
    <style>
        .mi-box {
            width: 300px;
            height: 300px;
            background-color: cornflowerblue;
        }

        .circle {
            border-radius: 50%;
        }

    </style>
</head>
<body>
<div id="app">

    <p>
        数组绑定，传的是vue对象中绑定的值，而不是直接传class
    </p>
    <div v-bind:class='[mi,c]'>
        吾皇万岁万岁万万岁
    </div>

</div>

<script>
    var v = new Vue({
        el: '#app',
        data: {
            mi:'mi-box',
            c:'circle'
        },
        mounted: function () {
            var that = this;
            setTimeout(function () {
                that.mi = false;
            }, 1000);

        },
    })


</script>

</body>
</html>